import { post } from '@/utils/request'

// 查询知识库分组树列表
export const getWikiGroupTreeList = p => post(`/service-cop/b/kfAutoReply/v1/wikiGroupTreeList/${p.parentId}`, p)
// 查询知识库分组列表
export const getWikiGroupList = p => post(`/service-cop/b/kfAutoReply/v1/wikiGroupList`, p)
// 查询知识库分组详情
export const viewWikiGroup = p => post(`/service-cop/b/kfAutoReply/v1/wikiGroupView/${p.id}`, p, 'get')
// 添加知识库分组
export const addWikiGroup = p => post(`/service-cop/b/kfAutoReply/v1/wikiGroupAdd`, p)
// 修改知识库分组
export const modifyWikiGroup = p => post(`/service-cop/b/kfAutoReply/v1/wikiGroupModify`, p)
// 删除知识库分组
export const delWikiGroup = p => post(`/service-cop/b/kfAutoReply/v1/wikiGroupDel/${p.id}`, p, 'get')

// 查询知识库分页列表
export const getWikiPageList = p => post(`/service-cop/b/kfAutoReply/v1/wikiList`, p)
// 查询知识库详情
export const viewWiki = p => post(`/service-cop/b/kfAutoReply/v1/wikiView/${p.id}`, p, 'get')
// 添加知识库
export const addWiki = p => post(`/service-cop/b/kfAutoReply/v1/wikiAdd`, p)
// 修改知识库
export const modifyWiki = p => post(`/service-cop/b/kfAutoReply/v1/wikiModify`, p)
// 删除知识库
export const delWiki = p => post(`/service-cop/b/kfAutoReply/v1/wikiDel/${p.id}`, p, 'get')
// 删除知识库
export const changeWikiStatus = p => post(`/service-cop/b/kfAutoReply/v1/changeWikiStatus/${p.id}/${p.status}`, p, 'get')
// 查询常见问题列表
export const listMarkCommon = p => post(`/service-cop/b/kfAutoReply/v1/listMarkCommon`, p)
